#ifndef SSL_H
#define SSL_H

#include"definicje.h"
#include<inttypes.h>
#include<stdbool.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<openssl/ssl.h>
#include<openssl/bio.h>
#include<openssl/err.h>


int wyslijpakietSSL(
      const int gniazdo,
      const struct sockaddr_storage * const adres,
      uint8_t * const d,
      SSL * ssl,
      BIO * bio,
      bool klient
      );

int odbierzpakietSSL(
      const int gniazdo,
      struct sockaddr_storage * const adres,
      uint8_t * const d,
      SSL * ssl,
      BIO * bio,
      bool klient
      );

int wyslijzpotwSSL(
      const int gniazdo,
      const struct sockaddr_storage * const adres,
      uint8_t * const d,
      uint8_t * const dp,
      uint32_t * const ktory,
      uint32_t * const ktoryp,
      SSL * ssl,
      BIO * bio,
      bool klient
      );

int odbierzzpotwSSL(
      const int gniazdo,
      struct sockaddr_storage * const adres,
      uint8_t * const d,
      uint32_t * const ktory,
      uint32_t * const ktoryp,
      SSL * ssl,
      BIO * bio,
      bool klient
      );

#endif
